@extends('public.father')


@section('css')


    <link href="/templates/hd/assets/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
    <link href="/templates/hd/assets/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

    <link href="/templates/hd/assets/css/personal.css" rel="stylesheet" type="text/css">
    <link href="/templates/hd/assets/css/infstyle.css" rel="stylesheet" type="text/css">


    @endsection


@section('script')


    <script src="/templates/hd/assets/AmazeUI-2.4.2/assets/js/jquery.min.js" type="text/javascript"></script>
    <script src="/templates/hd/assets/AmazeUI-2.4.2/assets/js/amazeui.js" type="text/javascript"></script>

@endsection



@section('content')

<div class="nav-table">
    <div class="long-title"><a href=""><span class="all-goods" style="color: white">全部分类</span></a></div>
</div>
<b class="line"></b>
<div class="center">
    <div class="col-main">
        <div class="main-wrap">

            <div class="user-info">
                <!--标题 -->
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">个人资料</strong> / <small>Personal&nbsp;information</small></div>
                </div>
                <hr/>

                <!--头像 -->
                <div class="user-infoPic">

                    <div class="filePic">
                        <input type="file" class="inputPic" allowexts="gif,jpeg,jpg,png,bmp" accept="image/*">
                        <img class="am-circle am-img-thumbnail" src="/templates/hd/assets/images/getAvatar.do.jpg" alt="" />
                    </div>

                    <p class="am-form-help">头像</p>

                    <div class="info-m">
                        <div><b>用户名：<i>{{Auth::guard('shop')->user()->email}}</i></b></div>
                        <div class="u-level">
									<span class="rank r2">
							             <s class="vip1"></s><a class="classes" href="#">铜牌会员</a>
						            </span>
                        </div>
                        <div class="u-safety">
                            <a href="safety.html">
                                账户安全
                                <span class="u-profile"><i class="bc_ee0000" style="width: 60px;" width="0">60分</i></span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--个人信息 -->
                <div class="info-main">
                    <form class="am-form am-form-horizontal" action="{{route('changeinfo')}}" method="post">
                        @csrf
                        <div class="am-form-group">
                            <label for="user-name2" class="am-form-label">昵称</label>
                            <div class="am-form-content">
                                <input type="text" name="nickname" value="{{$people['nickname']}}" id="user-name2" placeholder="nickname">

                            </div>
                        </div>

                        <div class="am-form-group">
                            <label class="am-form-label">性别</label>
                            <div class="am-form-content sex">
                                <label class="am-radio-inline">
                                    <input type="radio" name="sex" @if($people['sex']==1) checked @endif value="1" data-am-ucheck> 男
                                </label>
                                <label class="am-radio-inline">
                                    <input type="radio" name="sex" @if($people['sex']==2) checked @endif value="2" data-am-ucheck> 女
                                </label>
                                <label class="am-radio-inline">
                                    <input type="radio" name="sex" @if($people['sex']==3) checked @endif value="3" data-am-ucheck> 保密
                                </label>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="user-birth" class="am-form-label">生日</label>
                            <div class="am-form-content birth">
                                <div class="birth-select">
                                    <select data-am-selected name="year">
                                        <option value="2015">2015</option>
                                        <option value="1987">1987</option>
                                    </select>
                                    <em>年</em>
                                </div>
                                <div class="birth-select2">
                                    <select data-am-selected name="mouth">
                                        <option value="12">12</option>
                                        <option value="8">8</option>
                                    </select>
                                    <em>月</em></div>
                                <div class="birth-select2">
                                    <select data-am-selected name="day">
                                        <option value="21">21</option>
                                        <option value="23">23</option>
                                    </select>
                                    <em>日</em></div>
                            </div>

                        </div>
                        <div class="am-form-group">
                            <label for="user-phone" class="am-form-label">电话</label>
                            <div class="am-form-content">
                                <input id="user-phone" name="tel" value="{{$people['tel']}}" placeholder="telephonenumber" type="tel">

                            </div>
                        </div>

                        <div class="am-form-group safety">
                            <label for="user-safety" class="am-form-label">账号安全</label>
                            <div class="am-form-content safety">
                                <a href="safety.html">

                                    <span class="am-icon-angle-right"></span>

                                </a>

                            </div>
                        </div>
                        <div class="info-btn">
                            <button type="submit" class="am-btn am-btn-danger">保存修改</button>
                        </div>

                    </form>
                </div>

            </div>

        </div>

    </div>

    @include('public.aside')
</div>

@endsection